package oss.aliyun.springai.Mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TypeListMapper {
    @Insert("insert into chatlist (type,chatId) values (#{type},#{chatId})")
    public void save (String type ,String chatId) ;
    @Select("select chatId from chatlist where type = #{type}")
    public List<String> getChatIds (String type) ;
}
